<?php slot('js_insideLoadFunction')?>
ADMIN_FORM.init();
$('a.general-password').click(function(){
	var ranStr= ULTI.ranString(8);
	$('#UserPassword_login_password').val(ranStr);
	$('#UserPassword_login_password_confirm').val(ranStr);
	$('span.general-password-text').text(ranStr);
});
<?php end_slot()?>
<script type="text/javascript">
function fCHK(){
$('#name_error_2').hide();
var pas = $('#UserPassword_login_password');
var pasc = $('#UserPassword_login_password_confirm');
if(pas.val() != '' && pas.val() != pasc.val()){
	$('#name_error_2').show();
	pas.focus();
	pas.focus();
	return false;
}

$('#UserPassword_current_password').val(Sha1.hash($('#UserPassword_current_password').val()));
return true;
}
</script>
<div class="box-navigation">
	<?php echo $data['navigation']?>
</div>
<div class="clr"></div>
<div class="box-content">
	<form action="?" method="post" name="form_main" id="form_main" onsubmit="return fCHK();">
		<?php echo $form['_csrf_token']?>
		<div class="clr"></div>
		<div class="box-content-main ">
			<div class="message"><?php echo empty($data['result'])?'':$data['result']?></div><div class="note"><?php echo __('is_require',null, 'table_list')?></div>
			<div class="clr"></div>
			<table class="table-list table-form" cellspacing="0" cellpadding="0" border="0">
				<tr class="class1">
					<td class="label"><?php echo __('label_group',null,'sys_account')?></td>
					<td class="input">
						<?php echo $form['group_id']->render(array('disabled'=>'disabled'))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_name',null,'sys_account')?></td>
					<td class="input">
						<?php echo $form['name']->render(array('class'=>'form-text', 'readonly' => 'true'))?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_email',null,'sys_account')?></td>
					<td class="input">
						<?php echo $form['email']->render(array('class'=>'form-text ',  'readonly' => 'true'))?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_login_user',null,'sys_account')?></td>
					<td class="input">
						<?php echo $form['login_user']->render(array('class'=>'form-text ',  'readonly' => 'true'))?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_current_password',null,'sys_account')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['current_password']->render(array('class'=>'form-text  required', 'data-require'=> 'not-empty'))?>
						<span class="error" id="name_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_password',null,'sys_account')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['login_password']->render(array('class'=>'form-text required', 'data-require'=> 'not-empty'))?>
						<span class="error" id="name_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
					
				</tr>
				<tr class="class1" style="vertical-align: top">
					<td class="label" style="padding-top:12px;"><?php echo __('label_password_confirm',null,'sys_account')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['login_password_confirm']->render(array('class'=>'form-text required', 'data-require'=> 'not-empty'))?>
						<span class="error" id="name_error"><?php echo __('not_empty', null, 'table_list')?></span><br/>
						<span class="general-password-text" style="color:#f00"></span><br/>
						<div style="color:#f00;display: none" id="name_error_2">
							<?php echo __('error_password_confirm', null, 'table_list')?>
						</div>
						<a href="#" class="general-password" style="font-style: italic; font-size: 11px; color:#00f"><?php echo __('random_password', null, 'sys_account')?></a><br/>
						
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('is_enabled',null,'table_list')?><span class="required">*</span></td>
					<td class="input"><?php echo $form['is_enabled']->render(array('class'=>'required', 'disabled'	=> 'disabled'))?></td>
					
				</tr>
				<tr class="class1" style="background:#fff">
					<td class="label">&nbsp;</td>
					<td class="input"><input type="button" id="button_submit" name="button_submit" class="button" value="<?php echo $data['button_action']?>"/></td>
					
				</tr>
			</table>
		</div>
		<div class="clr"></div>
		<div class="control-back"><a href="<?php echo $data['redirect']?>" title="<?php echo __('control_back', null, 'table_list')?>" alt="<?php echo __('control_back', null, 'table_list')?>"><?php echo __('control_back', null, 'table_list')?></a></div>
	</form>
</div>